const home = () => import('@/view/sanhui-erp/home/home.vue');

const indenxUser = () => import('@/view/sanhui-erp/user-center/index.vue');
var userRouter = require('../sanhui-erp/user-center/index').default;

const indexMap = () => import('@/view/sanhui-erp/map-library/index.vue');
var mapRouter = require('../sanhui-erp/map-library/index').default;

const indexDesign = () => import('@/view/sanhui-erp/design/index.vue');
var designRouter = require('../sanhui-erp/design/index').default;
export default [
    {
        path: '/home',
        name: 'home',
        component: home,
    },
    {
    	path: '/user',
    	name: 'user',
    	redirect: '/user/account',
    	component: indenxUser,
		children: userRouter,
    },
    {
    	path: '/map',
    	name: 'map-library',
    	redirect: '/map/all',
    	component: indexMap,
    	children: mapRouter,
    },
    {
    	path: '/design',
    	name: 'design',
    	redirect: '/design/my',
    	component: indexDesign,
    	children: designRouter,
    }
]
